package la.iok.hzsvn.lewin.movie.core.movieservice.param;

import java.util.Objects;

/**
 * 只有单个名称的参数对象
 * @since 1.1.1
 */
public class NameParam {
    private String name;

    public NameParam() {
    }

    public NameParam(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NameParam param = (NameParam) o;
        return Objects.equals(name, param.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
